package cn.edu.fzu.homemaking.common;

import cn.edu.fzu.homemaking.domain.enums.OrderStatusEnum;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author jiebin
 * @Date 2023/4/14
 */
public class EmailMessageTemplate {

    private EmailMessageTemplate(){}

    private static final Map<OrderStatusEnum,String> messageMap = new HashMap<>();

    static {
        messageMap.put(OrderStatusEnum.REFUND, "您的订单已退款成功！");
        messageMap.put(OrderStatusEnum.CANCEL, "您的订单已取消成功!");
        messageMap.put(OrderStatusEnum.ORDER, "您的订单已创建成功！");
        messageMap.put(OrderStatusEnum.DISPATCH, "已为您分派相应的服务人员！");
        messageMap.put(OrderStatusEnum.GOING, "准备为您提供服务！");
        messageMap.put(OrderStatusEnum.PAYING,"您的服务已完成，请及时结算哦！");
        messageMap.put(OrderStatusEnum.ENDED,"您的订单已完成，期待您的五星好评哦！");
    }

    public static String getValue(OrderStatusEnum status){
        return messageMap.get(status);
    }
}
